﻿namespace explicit_显式转换_
{
    internal class KeyCode
    {
        public int KeyValue;

        public static explicit operator MouseCode(KeyCode c)
        {
            MouseCode mouse = new MouseCode();
            mouse.MouseValue = c.KeyValue;
            return mouse;
        }
    }
}